
Retrieve the current state of modifiable properties of the forest identified by
{id|name}.
| URL Parameters | |
|---|---|
| format | The format of the returned data. Can be
html, json or xml (default). If present, the
format parameter overrides the Accept header. |
Upon success, MarkLogic Server returns status code 200 (OK), and the data in the response body contains the requested information.
manage-user role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage
The structure of the output returned from this REST API is as follows:
databaseforest-nameenabledhostdata-directorylarge-data-directoryfast-data-directoryfast-data-max-sizeupdates-allowedavailabilityrebalancer-enablerangeThis is a complex structure with the following children:
lower-boundupper-boundpartition-numberfailover-enablefailover-hostsThis is a complex structure with the following children:
failover-hostforest-backupsThis is a complex structure with the following children:
forest-backupThis is a complex structure with the following children:
backup-idbackup-enabledbackup-directorybackup-typebackup-periodbackup-month-daybackup-daysThis is a complex structure with the following children:
backup-daybackup-start-datebackup-start-timebackup-timestampforest-replicasThis is a complex structure with the following children:
forest-replicaThis is a complex structure with the following children:
hostreplica-namedata-directorylarge-data-directoryfast-data-directorydatabase-replicationThis is a complex structure with the following children:
foreign-replicasThis is a complex structure with the following children:
foreign-replicaThis is a complex structure with the following children:
foreign-cluster-nameforeign-database-nameforeign-forest-nameforeign-masterThis is a complex structure with the following children:
foreign-cluster-nameforeign-database-nameforeign-forest-name
$ curl --anyauth --user user:password -X GET -i \
-H "Accept: application/xml" \
http://localhost:8002/manage/v2/forests/example/properties
==> Retrieve the state of the modifiable properties of the forest named
"example". MarkLogic Server responds with output similar to the following:
HTTP/1.1 200 OK
Content-type: application/xml
Cache-Control: no-cache
Expires: -1
Server: MarkLogic
Content-Length: 436
Connection: Keep-Alive
Keep-Alive: timeout=5
<forest-properties
xsi:schemaLocation="http://marklogic.com/manage manage.xsd"
xmlns="http://marklogic.com/manage"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled>true</enabled>
<updates-allowed>all</updates-allowed>
<availability>online</availability>
<rebalancer-enable>true</rebalancer-enable>
<range/>
<failover-enable>true</failover-enable>
<failover-hosts/>
<forest-replicas/>
</forest-properties>
The corresponding JSON output is similar to the following:
{
"enabled": true,
"updates-allowed": "all",
"availability": "online",
"rebalancer-enable": true,
"range": null,
"failover-enable": true,
"failover-host": null,
"forest-replica": null
}